package org.rendao.user.component.entity
{
	import org.rendao.entity.UserRole;

	[Bindable]
	public class RoleItem extends UserRole
	{
		public var isSelected:Boolean = false;
		
		public function RoleItem(role:UserRole) {
			this.id = role.id;
			this.name = role.name;
			this.isDeleted = role.isDeleted;
			this.isSelected = false;
		}
		
		public function getRole():UserRole {
			var role:UserRole = new UserRole();
			role.id = this.id;
			role.name = this.name;
			role.isDeleted = this.isDeleted;
			return role;
		}
	}
}